//Source file: D:\\test\\com\\ce\\pms\\custservice\\model\\SignReadingRecordDO.java

package com.ce.pms.custservice.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:阅签记录 关联数据表:CE_SIGN_READING_RECORD
 *
 * @author yandawei
 * @CreateDate:2008-12-8
 */
@Entity
@Table(name = "CE_SIGN_READING_RECORD")
public class SignReadingRecordDO implements IDomainObject {
	/**
	 * 阅签记录ID
	 */
	@Id
	@GeneratedValue
	@Column(name = "SIGN_READING_RECORD_ID")
	private Long keyword;

	/**
	 * 意见
	 */
	@Column(name = "ADVICE", nullable = false, length = 200)
	private String advice;

	/**
	 * 审阅者
	 */
	@Column(name = "REVIEWER", nullable = false, length = 36)
	private String reviewer;

	/**
	 * 客服事件
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CUST_SERVICE_EVENT_ID")
	private CustServiceEventDO customerServiceEventDO;

	/**
	 * 创建人
	 */
	@Column(name = "CREATOR", nullable = false, insertable = true, updatable = false)
	private Long creator;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SYSDATE", nullable = false, insertable = true, updatable = false)
	private Date sysDate;

	/**
	 * 默认构造器
	 *
	 * @return com.ce.pms.custservice.model.SignReadingRecordDO
	 * @roseuid 49363FA200AB
	 */
	public SignReadingRecordDO() {

	}

	/**
	 * 自定义构造器
	 *
	 * @param advice -
	 *            阅签意见
	 * @param reviewer -
	 *            阅签人
	 * @return com.ce.pms.custservice.model.SignReadingRecordDO
	 * @roseuid 49241A7100FA
	 */
	public SignReadingRecordDO(String advice, String reviewer) {
		this.advice = advice;
		this.reviewer = reviewer;
	}

	public String getAdvice() {
		return advice;
	}

	public void setAdvice(String advice) {
		this.advice = advice;
	}

	public CustServiceEventDO getCustomerServiceEventDO() {
		return customerServiceEventDO;
	}

	public void setCustomerServiceEventDO(
			CustServiceEventDO customerServiceEventDO) {
		this.customerServiceEventDO = customerServiceEventDO;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getReviewer() {
		return reviewer;
	}

	public void setReviewer(String reviewer) {
		this.reviewer = reviewer;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getSysDate() {
		return sysDate;
	}

	public void setSysDate(Date sysDate) {
		this.sysDate = sysDate;
	}

}
